﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lextm.SharpSnmpLib.Pipeline;
using Lextm.SharpSnmpLib;

namespace PrivateMIBTest
{
    public class Temperature : ScalarObject
    {
        private readonly Integer32 test = new Integer32(40);

        /// <summary>
        /// Initializes a new instance of the <see cref="SysDescr"/> class.
        /// </summary>
        public Temperature()
            : base(new ObjectIdentifier("1.3.6.1.4.1.666.10.2.0"))
        {
        }

        /// <summary>
        /// Gets or sets the data.
        /// </summary>
        /// <value>The data.</value>
        public override ISnmpData Data
        {
            get { return test; }
            set { throw new AccessFailureException(); }
        }
    }
}
